<?php 
if(!defined('ADMIN')){
	exit('Access Denied');
}
	srand(seed());
    $contentid=time()+mt_rand (0,10240000 );

?>
<div class="pageContent">
<form action="index.php?mod=<?=MOD?>&act=<?=ACT?>" method="post"  class="pageForm required-validate"  name="form1" onsubmit="return validateCallback(this, dialogAjaxDone);">
<input type="hidden" name="id" value="<?=$row['id']?>" />
<input type="hidden" name="sub" value="save" />
<div class="pageFormContent" layoutH="60">
<p><label>选择版位：</label>
<?=select($poslist,$row['spaceid'],'spaceid')?>
</p>
<p><label>广告标题：</label>
<input name="title" type="text" size="65"  id="title" value="<?=$row['title']?>" class="required" />
</p>

<p>
<label>开始时间：</label>
<input name="starttime" type="text" size="18"  id="starttime" value="<?=$row['starttime']?>"  class="date" dateFmt="yyyy-MM-dd HH:mm:ss" readonly="true" />
<a class="inputDateButton" href="javascript:;">选择</a>
</p>
<p>
<label>结束时间：</label>
<input name="endtime" type="text" size="18"  id="endtime" value="<?=$row['endtime']?>"  class="date" dateFmt="yyyy-MM-dd HH:mm:ss" readonly="true" />
<a class="inputDateButton" href="javascript:;">选择</a>
<span class="info">&nbsp;有效期间显示</span>
</p>
<p>
<label>显示状态：</label>
<?=html_radio($allowstatuslist,$row['disabled'],'disabled','')?>
</p>
<p><label>链接地址：</label>
<input name="url" type="text" size="65"  id="url" value="<?=$row['url']?>"  />
</p>
<p><label>上传图片：</label>
<input name="attachment.id" value="" type="hidden" />
<input type="text" name="attachment.fileName" class="readonly" style="width: 250px;" readonly="readonly" value="<?=$row["picurl"]?>"  />
<a class="btnPic" href="<?=u("content","upload")?>" rel="dia<?=$contentid?>" lookupGroup="attachment" width="460" height="200" title="上传广告图">附件</a>
<span class="info">&nbsp;选择本地图片文件</span>
</p>
<p  style="height: 50px;"><label>广告代码：</label>
<textarea name="adcode" rows="3" cols="48" ><?=$row["adcode"]?></textarea>
</p>
<p><label>说明：</label><span class="info">&nbsp;广告代码及上传图片二选一，优先广告代码</span></p>


</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
</form>
</div>
